package com.example.springstudy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springstudy.entity.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> listMenus(Set<String> roles);

    List<Integer> getMenusByRole(Integer roleId);
}
